docs: fix docs of functions to convert layout_index <-> text_index
authorSébastien Wilmet <swilmet@gnome.org>
Fri, 25 Nov 2016 20:32:09 +0000 (21:32 +0100)
committerSébastien Wilmet <swilmet@gnome.org>
Sat, 26 Nov 2016 11:31:34 +0000 (12:31 +0100)
Trivial commit.

The documentation was swapped. The documentation for the parameters and
the return values is good.

gtk/gtkentry.c

index 241d1d7b15e08a5e20b1a9132268bf98cbe237ef..188be890768a672acce5587bd1c1fb02de92a39c 100644 (file)
@@ -7727,12 +7727,11 @@ gtk_entry_get_layout (GtkEntry *entry)
  * gtk_entry_layout_index_to_text_index:
  * @entry: a #GtkEntry
  * @layout_index: byte index into the entry layout text
- * 
- * Converts from a position in the entry contents (returned
- * by gtk_entry_get_text()) to a position in the
- * entry’s #PangoLayout (returned by gtk_entry_get_layout(),
- * with text retrieved via pango_layout_get_text()).
- * 
+ *
+ * Converts from a position in the entry’s #PangoLayout (returned by
+ * gtk_entry_get_layout()) to a position in the entry contents
+ * (returned by gtk_entry_get_text()).
+ *
  * Returns: byte index into the entry contents
  **/
 gint
@@ -7767,11 +7766,12 @@ gtk_entry_layout_index_to_text_index (GtkEntry *entry,
  * gtk_entry_text_index_to_layout_index:
  * @entry: a #GtkEntry
  * @text_index: byte index into the entry contents
- * 
- * Converts from a position in the entry’s #PangoLayout (returned by
- * gtk_entry_get_layout()) to a position in the entry contents
- * (returned by gtk_entry_get_text()).
- * 
+ *
+ * Converts from a position in the entry contents (returned
+ * by gtk_entry_get_text()) to a position in the
+ * entry’s #PangoLayout (returned by gtk_entry_get_layout(),
+ * with text retrieved via pango_layout_get_text()).
+ *
  * Returns: byte index into the entry layout text
  **/
 gint